2.13 [Packages] Section

The [Packages] section lists all of the EDK II declaration files that are used by the component. Data from the INF and the DEC files is used to generate content for the AutoGen.c and AutoGen.h files.

Packages listed in architectural sections must not be listed in common [Packages] sections. The architectural section modifier is used as a restriction to mask items from architectures that are not applicable. The locations of the packages listed in this section will be used in generating include path statements for compiler tool chains. The packages must be listed in the order that resolves any include dependencies.

This section uses one of the following section definitions:

[Packages]
[Packages.common]
[Packages.IA32]
[Packages.X64]
[Packages.IPF]
[Packages.EBC]

The path must include the DEC file name and the name of the directory that contains the DEC file.

MdeModulePkg/MdeModulePkg.dec  # MdeModulePkg
MdePkg/MdePkg.dec              # MdePkg

The following is an example of a packages section:

[Packages]
  MdeModulePkg/MdeModulePkg.dec
  MdePkg/MdePkg.dec

If there are files listed under the [Sources] section, then the MdePkg/MdePkg.dec file must be specified in this section. The MdePkg contains information that is required by the EDK II build system in order to compile or assemble source files using external compilers or assemblers. When generating the "As Built" binary INF, the tools must include all packages that declare PCDs used by this module.

Binary only INF files must include this section if a [PatchPcd] or [PcdEx] section contains PCD entries.